package com.xiaoai.redis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author
 * @Date 2021-09-16 23:01
 */
@Setter
@Getter
@Data
@TableName(value = "emp") //指定表名
public class SysUser {

    @TableId(value = "eid",type = IdType.AUTO)//指定自增策略
    private Long id;
    @TableField(value = "ename",exist = true)
    private String name;
    private String age;
    private String sex;

}
